package com.googlecode.pdfbricks.merger;

import java.io.File;

import com.googlecode.pdfbricks.engine.to.FilePageRange;

/**
 * @author Johny Huang
 *
 */
public class MergingBuilder{

	private MergeCommand cmd;
	
	public MergingBuilder(){
		cmd=new MergeCommand();
	}
	
	public MergingBuilder from(FilePageRange filePageRange){
		cmd.addFromFilePageRange(filePageRange);
		return this;
	}
	
	public MergingBuilder to(File file){
		cmd.setToFile(file);
		return this;
	}
	
	public MergeCommand build(){
		return cmd;
	}
}
